package cn.itlight.block;

import cn.itlight.domain.User;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.web.bind.annotation.PathVariable;

public class UserBlock {
    public static User exceptionHandler(@PathVariable Long id , BlockException ex) {
        ex.printStackTrace();
        return new User(-1L,"限流了","限流了");
    }
}
